package com.wj.exception.enums;

public enum MinioExpCode {
    UPLOAD_FILE_FAILED( 1001, "上传文件失败" ),
    DELETE_FILE_FAILED( 1002, "删除文件失败" ),
    GET_PRESIGNED_URL_FAILED( 1003, "获取预签名URL失败"),
    SET_BUCKET_POLICY_FAILED(1004, "设置存储桶策略失败"),
    UPLOAD_FILE_TOO_LARGE(1005, "上传文件过大"),
    UPLOAD_FILE_EMPTY(1006, "上传文件为空"),
    UPLOAD_FILE_INVALID_NAME(1007, "上传文件名称非法"),
    UPLOAD_FILE_INVALID_TYPE(1008, "上传文件类型非法"),
    UPLOAD_FILE_STREAM_ERROR(1009, "文件读取失败"),
    UPLOAD_FILE_SERVER_ERROR(1010, "存储服务响应异常");
    public final Integer code;
    public final String message;
    MinioExpCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
